﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="CadastrarCategoriaVenda.aspx.cs" Inherits="SisVenda.Web.Administrador.CadastrarCategoriaVenda" %>

<%@ OutputCache Location="None" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="pnlCadastroVenda" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="aux" runat="server" Visible="true" HorizontalAlign="Right">
        <input type="checkbox" id="effect_fade" checked="checked" disabled="disabled" style="display: none" /><label
            for="effect_fade"></label>
        <input type="checkbox" id="effect_collapse" disabled="disabled" style="display: none" /><label
            for="effect_collapse"></label>
        <input type="checkbox" id="effect_color" disabled="disabled" style="display: none" /><label
            for="effect_color"></label>
    </asp:Panel>
    <asp:Panel ID="pnlCadastroCatVenda" runat="server" GroupingText="Cadastro Categoria Venda">
        <asp:Panel ID="pnlColapse" runat="server" CssClass="collapsePanelHeader" Height="30px">
            <div style="padding: 5px; cursor: pointer; vertical-align: middle;">
                <div style="float: left;">
                    Categoria Venda</div>
                <div style="float: left; margin-left: 20px;">
                    <asp:Label ID="Label1" runat="server">[Expandir...]</asp:Label>
                </div>
                <div style="float: right; vertical-align: middle;">
                    <asp:ImageButton ID="Image1" runat="server" ImageUrl="~/App_Themes/Tema/Images/recolher.gif"
                        AlternateText="[Mostra Detalhes...]" />
                </div>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnlListagem" runat="server" >
            <fieldset style="height: 100%">
                <legend>Pesquisa</legend>
                <table class="filtros">
                    <tr>
                        <td class="rotuloFiltro">
                            Descrição:
                        </td>
                        <td>
                            <asp:TextBox ID="tbxDescricao" runat="server" CssClass="largura450px" SkinID="Nome"></asp:TextBox>
                            <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtenderDesc" runat="server"
                                TargetControlID="tbxDescricao" FilterType="Custom, LowercaseLetters, UppercaseLetters, Numbers"
                                ValidChars=" +*/-" />
                            <ajaxToolkit:TextBoxWatermarkExtender ID="tbwtbxDescricao" runat="server" TargetControlID="tbxDescricao"
                                WatermarkText="Descrição Da Categoria De Venda Para Pesquisa"
                                SkinID="Water440" />
                            <ajaxToolkit:AutoCompleteExtender runat="server" BehaviorID="AutoCompleteEx" ID="autoComplete1"
                                TargetControlID="tbxDescricao" ServicePath="AutoCompleteCatVenda.asmx" ServiceMethod="GetCompletionList"
                                SkinID="AutoComplete">
                                <Animations>
                                <OnShow>
                                    <Sequence>
                                        <%-- Make the completion list transparent and then show it --%>
                                        <OpacityAction Opacity="0" />
                                        <HideAction Visible="true" />
                            
                                        <%--Cache the original size of the completion list the first time
                                            the animation is played and then set it to zero --%>
                                        <ScriptAction Script="
                                            // Cache the size and setup the initial size
                                            var behavior = $find('AutoCompleteEx');
                                            if (!behavior._height) {
                                            var target = behavior.get_completionList();
                                            behavior._height = target.offsetHeight - 2;
                                            target.style.height = '0px';}" />
                            
                                        <%-- Expand from 0px to the appropriate size while fading in --%>
                                        <Parallel Duration=".4">
                                            <FadeIn />
                                            <Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx')._height" />
                                        </Parallel>
                                    </Sequence>
                                </OnShow>
                            <OnHide>
                                <%-- Collapse down to 0px and fade out --%>
                                <Parallel Duration=".4">
                                    <FadeOut />
                                    <Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx')._height" EndValue="0" />
                                </Parallel>
                            </OnHide>
                                </Animations>
                            </ajaxToolkit:AutoCompleteExtender>
                            <script type="text/javascript">
                                // Work around browser behavior of "auto-submitting" simple forms
                                var frm = document.getElementById("aspnetForm");
                                if (frm) {
                                    frm.onsubmit = function () { return false; };
                                }
                            </script>
                            <%-- Prevent enter in textbox from causing the collapsible panel from operating --%>
                            <input type="submit" style="display: none;" />
                        </td>
                        <td class="rotuloFiltro">
                            Linhas:
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlNumeroLinhasGrid" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlNumeroLinhasGrid_SelectedIndexChanged"
                                SkinID="Paginacao" Style="cursor: pointer;">
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            <asp:Button ID="btnPesquisar" runat="server" Text="Pesquisar" CausesValidation="False"
                                SkinID="Pesquisar" OnClick="btnPesquisar_Click" Style="height: 26px; margin-bottom: 0px;
                                cursor: pointer;" />
                        </td>
                    </tr>
                </table>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:GridView ID="gvwListagem" runat="server" AllowPaging="True" DataSourceID="odsGridViewCatVenda"
                            AutoGenerateColumns="False" OnDataBinding="gvwListagem_DataBinding" OnSelectedIndexChanged="gvwListagem_SelectedIndexChanged"
                            DataKeyNames="IdCategoriaVenda" AllowSorting="True" SkinID="SemSelect" 
                            SelectedIndex="0">
                            <Columns>
                                <asp:TemplateField ShowHeader="False">
                                    <ItemStyle HorizontalAlign="Center" Width="25px" CssClass="PaddingGridView" />
                                    <HeaderStyle CssClass="PaddingGridViewHeader" />
                                    <ItemTemplate>
                                        <asp:ImageButton ID="ibnSelect" runat="server" CommandName="Select" CausesValidation="False"
                                            SkinID="Select" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="IdCategoriaVenda" HeaderText="Código" />
                                <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                            </Columns>
                        </asp:GridView>
                        <asp:ObjectDataSource ID="odsGridViewCatVenda" runat="server" OldValuesParameterFormatString="original_{0}"
                            OnSelecting="odsGridViewCatVenda_Selecting" SelectMethod="ObterCategoriaVenda"
                            TypeName="SisVenda.Web.Administrador.Fn.CadastroCategoriaVendaFn">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="tbxDescricao" Name="descricao" 
                                    PropertyName="Text" Type="String" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="btnPesquisar" EventName="Click" />
                        <asp:AsyncPostBackTrigger ControlID="ddlNumeroLinhasGrid" EventName="SelectedIndexChanged" />
                    </Triggers>
                </asp:UpdatePanel>
                <ajaxToolkit:UpdatePanelAnimationExtender ID="upae" BehaviorID="animation" runat="server"
                    TargetControlID="UpdatePanel1">
                    <Animations>
                <OnUpdating>
                    <Sequence>
                        <%-- Store the original height of the panel --%>
                        <ScriptAction Script="var b = $find('animation'); b._originalHeight = b._element.offsetHeight;" />
                        
                        <%-- Disable all the controls --%>
                        <Parallel duration="0">
                            <EnableAction AnimationTarget="effect_color" Enabled="false" />
                            <EnableAction AnimationTarget="effect_collapse" Enabled="false" />
                            <EnableAction AnimationTarget="effect_fade" Enabled="false" />
                        </Parallel>
                        <StyleAction Attribute="overflow" Value="hidden" />
                        
                        <%-- Do each of the selected effects --%>
                        <Parallel duration=".25" Fps="30">
                            <Condition ConditionScript="$get('effect_fade').checked">
                                <FadeOut AnimationTarget="up_container" minimumOpacity=".2" />
                            </Condition>
                            <Condition ConditionScript="$get('effect_collapse').checked">
                                <Resize Height="0" />
                            </Condition>
                            <Condition ConditionScript="$get('effect_color').checked">
                                <Color AnimationTarget="up_container" PropertyKey="backgroundColor"
                                    EndValue="#FFFFFF" StartValue="#FFFFFF" />
                            </Condition>
                        </Parallel>
                    </Sequence>
                </OnUpdating>
                <OnUpdated>
                    <Sequence>
                        <%-- Do each of the selected effects --%>
                        <Parallel duration=".25" Fps="30">
                            <Condition ConditionScript="$get('effect_fade').checked">
                                <FadeIn AnimationTarget="up_container" minimumOpacity=".2" />
                            </Condition>
                            <Condition ConditionScript="$get('effect_collapse').checked">
                                <%-- Get the stored height--%> 
                                <Resize HeightScript="$find('animation')._originalHeight" />                               
                            </Condition>
                           
                            <Condition ConditionScript="$get('effect_color').checked">
                                <Color AnimationTarget="up_container" PropertyKey="backgroundColor"
                                    StartValue="#FFFFFF" EndValue="#FFFFFF" />
                            </Condition>
                        </Parallel>
                        
                        <%-- Enable all the controls --%>
                        <Parallel duration="5">
                            <EnableAction AnimationTarget="effect_fade" Enabled="false" />
                            <EnableAction AnimationTarget="effect_collapse" Enabled="false" />
                            <EnableAction AnimationTarget="effect_color" Enabled="false" />
                        </Parallel>                            
                    </Sequence>
                </OnUpdated>
                    </Animations>
                </ajaxToolkit:UpdatePanelAnimationExtender>
            </fieldset>
        </asp:Panel>
        <ajaxToolkit:CollapsiblePanelExtender ID="cpeDemo" runat="Server" TargetControlID="pnlListagem"
            ExpandControlID="pnlColapse" CollapseControlID="pnlColapse" Collapsed="True"
            ImageControlID="Image1" TextLabelID="Label1" ExpandedText="[Ocultar Detalhes...]"
            CollapsedText="[Mostrar Detalhes...]" ExpandedImage="../App_Themes/Tema/Images/recolher.gif"
            CollapsedImage="../App_Themes/Tema/Images/expandir.gif" SuppressPostBack="true"
            SkinID="ColapsePanel" />
        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
            <ContentTemplate>
                <asp:FormView ID="fvwEdicao" runat="server" DataSourceID="odsFormViewCatVenda" EnableModelValidation="False">
                    <EditItemTemplate>
                        <asp:Panel ID="pnlAlterarUp" runat="server" GroupingText="Alterar">
                            <table style="width: 100%;">
                                <tr>
                                    <td style="width: 15%">
                                        Código:
                                    </td>
                                    <td style="width: 85%">
                                        <asp:Label ID="lblCodigoUp" runat="server" Text='<%# Eval("IdCategoriaVenda") %>' CssClass="largura250px"></asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 15%">
                                        &nbsp;
                                    </td>
                                    <td style="width: 85%">
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 15%">
                                        Descrição:
                                    </td>
                                    <td style="width: 85%">
                                        <asp:TextBox ID="tbxDescricaoUp" runat="server" CssClass="largura450px" MaxLength="45"
                                            Text='<%# Eval("Descricao") %>'></asp:TextBox>
                                        <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtenderUP" runat="server"
                                            TargetControlID="tbxDescricaoUp" FilterType="Custom, LowercaseLetters, UppercaseLetters, Numbers"
                                            ValidChars=" +*/-" />
                                        <ajaxToolkit:TextBoxWatermarkExtender ID="tbwtbxDescricaoUp" runat="server" TargetControlID="tbxDescricaoUp"
                                            WatermarkText="Descrição Da Categoria De Venda" SkinID="Water440R" />
                                        <asp:RequiredFieldValidator ID="rfvDescricaoUp" runat="server" Display="None" ErrorMessage="O campo Descrição deve ser informado."
                                            ValidationGroup="update" ControlToValidate="tbxDescricaoUp"></asp:RequiredFieldValidator>
                                        <act:ValidatorCalloutExtender ID="rfvDescricaoUp_ValidatorCalloutExtender" runat="server"
                                            Enabled="True" TargetControlID="rfvDescricaoUp" CssClass="validar">
                                        </act:ValidatorCalloutExtender>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                            <div class="acoes">
                                <asp:Button ID="btnAlterarEdit" runat="server" CommandName="Update" SkinID="Salvar"
                                    Text="Salvar" ValidationGroup="update" Style="cursor: pointer;" />
                                &nbsp;&nbsp;<asp:Button ID="btnCancelarEdit" runat="server" CausesValidation="False"
                                    CommandName="Cancel" SkinID="Cancelar" Text="Cancelar" Style="cursor: pointer;" />
                                <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtenderUp" runat="server" TargetControlID="btnCancelarEdit"
                                    OnClientCancel="cancelClick" DisplayModalPopupID="ModalPopupExtenderUp" />
                                <br />
                                <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderUp" runat="server" TargetControlID="btnCancelarEdit"
                                    PopupControlID="PNLUp" OkControlID="ButtonOkUp" CancelControlID="ButtonCancelUp"
                                    BackgroundCssClass="modalBackground" />
                                <asp:Panel ID="PNLUp" runat="server" Style="display: none; width: 200px; background-color: White;
                                    border-width: 2px; border-color: Black; border-style: solid; padding: 20px; text-align: left;
                                    background: -webkit-gradient(linear, left top, left 560, from(#bfcbd6), color-stop(4%, #bfcbd6), to(#FFFFFF));
                                    background: -moz-linear-gradient(top, #bfcbd6, #bfcbd6 1px, #FFFFFF 50px); border-radius: 4px;
                                    -webkit-border-radius: 4px; -moz-border-radius: 4px">
                                    <div style="text-align: right;">
                                        <img alt="?" src="../App_Themes/Tema/Images/help-icon.png" />
                                    </div>
                                    Os valores informados serão descartados e o registro não será alterado.
                                    <br />
                                    Confirma o cancelamento da operação?"
                                    <br />
                                    <br />
                                    <div style="text-align: right;">
                                        <asp:Button ID="ButtonOkUp" runat="server" Text="Sim" Style="cursor: pointer;" />
                                        <asp:Button ID="ButtonCancelUp" runat="server" Text="Não" Style="cursor: pointer;" />
                                    </div>
                                </asp:Panel>
                            </div>
                        </asp:Panel>
                    </EditItemTemplate>
                    <InsertItemTemplate>
                        <asp:Panel ID="pnlNovo" runat="server" GroupingText="Novo">
                            <table style="width: 100%;">
                                <tr>
                                    <td class="rotulo" style="width: 15%">
                                        Código:
                                    </td>
                                    <td style="width: 85%">
                                        <b>&lt;gerado automaticamente&gt;</b> &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td class="rotulo" style="width: 15%">
                                        &nbsp;
                                    </td>
                                    <td style="width: 85%">
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td class="rotulo" style="width: 15%">
                                        Descrição:
                                    </td>
                                    <td style="width: 85%">
                                        <asp:TextBox ID="tbxDescricaoInsert" runat="server" CssClass="largura450px" MaxLength="45"
                                            Text='<%# Bind("descricao") %>'></asp:TextBox>
                                        <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtenderInsert" runat="server"
                                            TargetControlID="tbxDescricaoInsert" FilterType="Custom, LowercaseLetters, UppercaseLetters, Numbers"
                                            ValidChars=" +*/-" />
                                        <ajaxToolkit:TextBoxWatermarkExtender ID="tbwtbxDescricaoinsert" runat="server" TargetControlID="tbxDescricaoInsert"
                                            WatermarkText="Descrição Da Categoria De Venda" SkinID="Water440" />
                                        <asp:RequiredFieldValidator ID="rfvDercricaoInsert" runat="server" ControlToValidate="tbxDescricaoInsert"
                                            Display="None" ErrorMessage="O campo Descrição deve ser informado." ValidationGroup="insert"></asp:RequiredFieldValidator>
                                        <act:ValidatorCalloutExtender ID="rfvDercricaoInsert_ValidatorCalloutExtender" runat="server"
                                            Enabled="True" TargetControlID="rfvDercricaoInsert" CssClass="validar">
                                        </act:ValidatorCalloutExtender>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                            <div class="acoes">
                                <asp:Button ID="btnInserirInsert" runat="server" CommandName="Insert" SkinID="Inserir"
                                    Text="Inserir" ValidationGroup="insert" Style="cursor: pointer;" />
                                &nbsp;&nbsp;<asp:Button ID="btnCancelarInsert" runat="server" CausesValidation="False"
                                    CommandName="Cancel" SkinID="Cancelar" Text="Cancelar" Style="cursor: pointer;" />
                                <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtenderInsert" runat="server"
                                    TargetControlID="btnCancelarInsert" OnClientCancel="cancelClick" DisplayModalPopupID="ModalPopupExtenderInsert" />
                                <br />
                                <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderInsert" runat="server" TargetControlID="btnCancelarInsert"
                                    PopupControlID="PNLInsert" OkControlID="ButtonOkInsert" CancelControlID="ButtonCancelInsert"
                                    BackgroundCssClass="modalBackground" />
                                <asp:Panel ID="PNLInsert" runat="server" Style="display: none; width: 200px; background-color: White;
                                    border-width: 2px; border-color: Black; border-style: solid; padding: 20px; text-align: left;
                                    background: -webkit-gradient(linear, left top, left 560, from(#bfcbd6), color-stop(4%, #bfcbd6), to(#FFFFFF));
                                    background: -moz-linear-gradient(top, #bfcbd6, #bfcbd6 1px, #FFFFFF 50px); border-radius: 4px;
                                    -webkit-border-radius: 4px; -moz-border-radius: 4px">
                                    <div style="text-align: right;">
                                        <img alt="?" src="../App_Themes/Tema/Images/help-icon.png" />
                                    </div>
                                    Os valores informados serão descartados e o registro não será inserido.<br />
                                    Confirma o cancelamento da operação?
                                    <br />
                                    <br />
                                    <div style="text-align: right;">
                                        <asp:Button ID="ButtonOkInsert" runat="server" Text="Sim" Style="cursor: pointer;" />
                                        <asp:Button ID="ButtonCancelInsert" runat="server" Text="Não" Style="cursor: pointer;" />
                                    </div>
                                </asp:Panel>
                            </div>
                        </asp:Panel>
                    </InsertItemTemplate>
                    <ItemTemplate>
                        <asp:Panel ID="pnlLeitura" runat="server" GroupingText="Edição">
                            <table style="width: 100%;">
                                <tr>
                                    <td style="width: 15%">
                                        Código:
                                    </td>
                                    <td style="width: 85%">
                                        <asp:Label ID="lblCodigo" runat="server" Text='<%# Eval("IdCategoriaVenda")%>'></asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 15%">
                                        &nbsp;
                                    </td>
                                    <td style="width: 85%">
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 15%">
                                        Descrição:
                                    </td>
                                    <td style="width: 85%">
                                        <asp:Label ID="lblDescricao" runat="server" Text='<%# Eval("Descricao")%>'></asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                            <div class="acoes">
                                &nbsp;<asp:Button ID="btnAlterarItem" runat="server" SkinID="Alterar" CommandName="Edit"
                                    Text="Alterar" Style="cursor: pointer;" />
                                &nbsp;<asp:Button ID="btnExcluirItem" runat="server" CommandName="Delete" SkinID="Excluir"
                                    Text="Excluir" Style="cursor: pointer;" />
                                &nbsp;<asp:Button ID="btnNovoItem" runat="server" CommandName="New" SkinID="Novo"
                                    Text="Novo" Style="cursor: pointer;" />
                                <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtenderItem" runat="server"
                                    TargetControlID="btnExcluirItem" OnClientCancel="cancelClick" DisplayModalPopupID="ModalPopupExtenderItem" />
                                <br />
                                <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderItem" runat="server" TargetControlID="btnExcluirItem"
                                    PopupControlID="PNLItem" OkControlID="ButtonOkItem" CancelControlID="ButtonCancelItem"
                                    BackgroundCssClass="modalBackground" Enabled="True" />
                                <asp:Panel ID="PNLItem" runat="server" Style="display: none; width: 200px; background-color: White;
                                    border-width: 2px; border-color: Black; border-style: solid; padding: 20px; text-align: left;
                                    background: -webkit-gradient(linear, left top, left 560, from(#bfcbd6), color-stop(4%, #bfcbd6), to(#FFFFFF));
                                    background: -moz-linear-gradient(top, #bfcbd6, #bfcbd6 1px, #FFFFFF 50px); border-radius: 4px;
                                    -webkit-border-radius: 4px; -moz-border-radius: 4px">
                                     <div style="text-align: right;">
                                        <img alt="?" src="../App_Themes/Tema/Images/help-icon.png" />
                                    </div>
                                    Deseja realmente excluir o registro?
                                    <br />
                                    <br />
                                    <div style="text-align: right;">
                                        <asp:Button ID="ButtonOkItem" runat="server" Text="Sim" Style="cursor: pointer;" />
                                        <asp:Button ID="ButtonCancelItem" runat="server" Text="Não" Style="cursor: pointer;" />
                                    </div>
                                </asp:Panel>
                            </div>
                        </asp:Panel>
                    </ItemTemplate>
                </asp:FormView>
                <asp:ObjectDataSource ID="odsFormViewCatVenda" runat="server" DeleteMethod="DeleteCategoriaVenda"
                    InsertMethod="InserirCategoriaVenda" OldValuesParameterFormatString="original_{0}"
                    OnDeleted="odsFormViewCatVenda_Deleted" OnDeleting="odsFormViewCatVenda_Deleting"
                    OnInserted="odsFormViewCatVenda_Inserted" OnSelecting="odsFormViewCatVenda_Selecting"
                    OnUpdated="odsFormViewCatVenda_Updated" OnUpdating="odsFormViewCatVenda_Updating"
                    SelectMethod="obterCategoriaVedaID" TypeName="SisVenda.Web.Administrador.Fn.CadastroCategoriaVendaFn"
                    UpdateMethod="UpdateCategoriaVenda">
                    <DeleteParameters>
                        <asp:Parameter Name="idCategoriaVenda" Type="Int32" />
                    </DeleteParameters>
                    <InsertParameters>
                        <asp:Parameter Name="descricao" Type="String" />
                    </InsertParameters>
                    <SelectParameters>
                        <asp:Parameter Name="idCategoriaVenda" Type="Int32" />
                    </SelectParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="idCategoriaVenda" Type="Int32" />
                        <asp:Parameter Name="descricao" Type="String" />
                    </UpdateParameters>
                </asp:ObjectDataSource>
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
</asp:Content>
